﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfClient.Models
{
    public class SettingsViewModel : ViewModelBase
    {

        public string Username 
        {
            get 
            {
                return SettingsManager.Settings.Username;
            }
            set
            {
                SettingsManager.Settings.Username = value;
                RaisePropertyChanged();
            }
        }

        public string Password 
        {
            get
            {
                return SettingsManager.Settings.Password;
            }
            set
            {
                SettingsManager.Settings.Password = value;
                RaisePropertyChanged();
            }
        
        }

        public bool IsRussian
        {
            get
            {
                return SettingsManager.Settings.UseRussian;
            }
            set
            {
                SettingsManager.Settings.UseRussian = value;
                RaisePropertyChanged();
            }
        }
    }
}
